<%@page import="java.util.ArrayList"%>
<%@page import="form.ValidationConnexion"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<jsp:useBean id="pageConfig" scope="request" class="beans.Page"></jsp:useBean>
<jsp:useBean id="manager" scope="session" class="manager.Manager"/>
<jsp:useBean id="medecin" scope="request" class="beans.Medecin"/>
<jsp:useBean id="erreur" scope="request" class="beans.Erreur"/>

<%
if(request.getParameter("submit") != null)
{
	boolean res = ValidationConnexion.form(request, medecin, erreur);
	if (res)
	{
		manager.setMessage("");
		manager.setConnecte(true);
		manager.setIdMedecin(medecin.getIdMedecin());
		response.sendRedirect(manager.getPage());
		
		return;
	}
}
%>

<%
	pageConfig.setTitre("Accueil");
	pageConfig.setContenu("../accueil/connexion.jsp");
%>

<jsp:include page="../commun_page_modele/modele.jsp"></jsp:include>